Skip to content

fix(llm): handle ConnectionClosedOK exception in _receive_from_model test #1752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coder-aditi
Copy link

Fix #1748

I fixed the failing test test_receive_from_model_yields_events by updating how the ConnectionClosedOK exception is raised. The test was missing required arguments for the exception, which caused errors when running the tests. Now it properly includes those parameters, so the test can simulate a closed connection without breaking. This should make the tests pass smoothly.

Copy link

google-cla bot commented Jul 2, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@coder-aditi
Copy link
Author

coder-aditi commented Jul 2, 2025

/recheck

@coder-aditi coder-aditi force-pushed the fix/llm_flow_tests branch 3 times, most recently from 2894065 to e67ae95 Compare July 2, 2025 16:09
@coder-aditi coder-aditi force-pushed the fix/llm_flow_tests branch from e67ae95 to cd43fdb Compare July 2, 2025 16:11
@coder-aditi coder-aditi changed the title Fix test for _receive_from_model, handle ConnectionClosedOK exception… fix(llm): handle ConnectionClosedOK exception in _receive_from_model test Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Role Assignment in Multi-Agent Mode Causes Context Misinterpretation
1 participant